package org.mcclone.platy;

import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.List;
import java.util.Optional;

public interface UserRepository extends ElasticsearchRepository<User, String> {

    Optional<User> findTopByUserName(String userName);

    List<User> findTopByPhoneOrderByCreateTimeDesc(String phone);

    List<User> findByAddressCode(String addressCode);
}
